#include <bits/stdc++.h>
#define uint unsigned long long
#define sint long long
using namespace std;

int arr[100005];
queue <int> q;
int main()
{
	freopen("duel.in", "r", stdin);
	freopen("duel.out", "w", stdout);
	int n;
	scanf("%d", &n);
	for(int i = 0; i < n; i++){
		scanf("%d", &arr[i]);
	}
	int cnt = n;
	sort(arr, arr + n);
	for(int i = 0; i < n; i++){
		if(q.size()){
			if(q.front() < arr[i]){
				q.pop();
				cnt --;
			}
		}
		q.push(arr[i]);
	}
	printf("%d", cnt);
	return 0;
}